/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.sigodonto.model.entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;

/**
 *
 * @author Fidelis
 */
@Entity
public class Dente implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @SequenceGenerator(name = "dente_id", sequenceName = "dente_sequence", allocationSize = 1, initialValue = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "dente_id")
    private Long id;
    private String numero;
    private String estado;
    private String faceLingPal;
    private String faceMesial;
    private String faceVestibular;
    private String faceDistal;
    private String faceOclusal;

    public Dente(String numero, String estado, String faceLingPal, String faceMesial, String faceVestibular, String faceDistal, String faceOclusal) {
        this.numero = numero;
        this.estado = estado;
        this.faceLingPal = faceLingPal;
        this.faceMesial = faceMesial;
        this.faceVestibular = faceVestibular;
        this.faceDistal = faceDistal;
        this.faceOclusal = faceOclusal;
    }

    public Dente() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getEstado() {
        return estado;
    }

    public void setEstado(String estado) {
        this.estado = estado;
    }

    public String getFaceLingPal() {
        return faceLingPal;
    }

    public void setFaceLingPal(String faceLingPal) {
        this.faceLingPal = faceLingPal;
    }

    public String getFaceMesial() {
        return faceMesial;
    }

    public void setFaceMesial(String faceMesial) {
        this.faceMesial = faceMesial;
    }

    public String getFaceVestibular() {
        return faceVestibular;
    }

    public void setFaceVestibular(String faceVestibular) {
        this.faceVestibular = faceVestibular;
    }

    public String getFaceDistal() {
        return faceDistal;
    }

    public void setFaceDistal(String faceDistal) {
        this.faceDistal = faceDistal;
    }

    public String getFaceOclusal() {
        return faceOclusal;
    }

    public void setFaceOclusal(String faceOclusal) {
        this.faceOclusal = faceOclusal;
    }

    public String getNumero() {
        return numero;
    }

    public void setNumero(String numero) {
        this.numero = numero;
    }
    
    

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Dente)) {
            return false;
        }
        Dente other = (Dente) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "br.com.sigodonto.model.entity.Dente[ id=" + id + " ]";
    }
    
}
